package com.sh.business.mapper;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.sh.business.domain.UserOutInvest;
import com.sh.business.domain.vo.UserOutInvestVo;
import com.sh.common.mybatis.core.mapper.BaseMapperPlus;

/**
 * 用户外部投资记录Mapper接口
 *
 * @author ruoyi
 * @date 2025-03-17
 */
public interface UserOutInvestMapper extends BaseMapperPlus<UserOutInvest, UserOutInvestVo> {

    default UserOutInvest queryByOrderSn(String orderSn) {
        return selectOne(Wrappers.<UserOutInvest>lambdaQuery().eq(UserOutInvest::getOrderSn, orderSn));
    }

}
